//
//  Palette.h
//  MapEdit
//
//  Created by Steven Canfield on 15/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "NSColorAdditions.h"
#import "DebugLog.h"

@interface ColorPalette : NSObject {
	u_int32_t _colors[256];
}
- (id)initWithData:(NSData *)data;
- (NSColor *)colorAtIndex:(int)index;
- (unsigned int*)pixelAtIndex:(int)index;
- (void)color:(unsigned int *)storage forPixelAtIndex:(int)index;
- (int)colorsCount;
- (void)writeToFile:(NSString *)file;
@end
